﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CapaDatos;
using CapaEntidades;

namespace CapaNegocio
{
    public class neCliente
    {

        #region singleton
        private static readonly neCliente _instancia = new neCliente();
        public static neCliente Instancia
        {
            get { return neCliente._instancia; }
        }
        #endregion

        #region Métodos
        public  List<enCliente> spListarClienteAll()
        {
            return daCliente.spListarClienteAll();
        }

        public  List<enCliente> spClienteXRazonSocial(String prmRazSocial) {
            return daCliente.spClienteXRazonSocial(prmRazSocial);
        }

        public int InsertarCliente(enCliente l)
        {
            try
            {
                return daCliente.Instancia.InsertarCliente(l);
            }
            catch (Exception e)
            {
                throw e;
            }
        }

        public enAlerta spUpdateAlmacen(int idAlm, String dir, int est)
        {
            try
            {
                return daCliente.Instancia.spUpdateAlmacen(idAlm, dir,est);
            }
            catch (Exception)
            {

                throw;
            }
        }

        #endregion
    }
}
